import java.util.*;
public class Main{
public static void main(String[] args)
{
	VehicleFactory A=VehicleFactory.getVehicleFactory(VehicleFactory.LUXURY_VEHICLE);
	VehicleFactory B=VehicleFactory.getVehicleFactory(VehicleFactory.NON_LUXURY_VEHICLE);
	ArrayList <Car> cars=new ArrayList<Car>();
	cars.add(A.getCar());
	cars.add(B.getCar());
	ArrayList <SUV> suvuri=new ArrayList<SUV>();
	suvuri.add(A.getSUV());
	suvuri.add(B.getSUV());
	System.out.println("Masini:");
	for(int i=0;i<cars.size(); i++)
	{
		System.out.println("Masina:"+i+":"+cars.get(i).getCarName()+" " +cars.get(i).getCarFeatures());	
	}
	System.out.println("SUVuri:");
	for(int i=0;i<suvuri.size(); i++)
	{
		System.out.println("SUV:"+i+":"+suvuri.get(i).getSUVName()+" "+suvuri.get(i).getSUVFeatures());
	}
	
}
}